<?php list($value, $params) = Nuo::getApi('privacy') -> getPrivacy(Nuo::getUser(), 'simple'); ?>
<div class="uiToggleWrapper">
	<div>
		<input type="hidden" name="privacy[value]" class="uiDynamicValue" value="<?php echo $value; ?>" />
		<a href="#" aria-click="toggle" hover="tooltip" tooltip-prefix="Privacy Setting: " tooltip-data=".uiDynamicText" class="uiSelectorButton">
			<i class="uiIcon uiDynamicIcon"></i>
			<span class="uiButtonText uiDynamicText"><?php echo get_privacy_label($value); ?></span>
			<i class="uiIcon uiIconArrowDown"></i>
		</a>
	</div>
	<div class="uiToggleFlyout">
		<div class="uiMenu uiSelectorMenu">
			<ul class="uiMenuInner">
				<li class="uiMenuItem">
					<a class="itemAnchor" aria-click="jscript" aria-cb="composer.setPrivacy" aria-data="0.0.0">
						<i class="uiIcon uiIconPrivacyPublic">&nbsp;</i>
						<span class="itemLabel"><?php echo get_privacy_label(0); ?></span>
					</a>
				</li>
				<li class="uiMenuItem">
					<a class="itemAnchor" aria-click="jscript" aria-cb="composer.setPrivacy" aria-data="1.0.0">
						<i class="uiIcon uiIconPrivacyFriend">&nbsp;</i>
						<span class="itemLabel"><?php echo get_privacy_label(1); ?></span>
					</a>
				</li>
				<li class="uiMenuItem">
					<a class="itemAnchor" aria-click="jscript" aria-cb="composer.setPrivacy" aria-data="2.0.0">
						<i class="uiIcon uiIconPrivacyFof">&nbsp;</i>
						<span class="itemLabel"><?php echo get_privacy_label(2); ?></span>
					</a>
				</li>
				<li class="uiMenuItem">
					<a class="itemAnchor" aria-click="jscript" aria-cb="composer.setPrivacy" aria-data="3.0.0">
						<i class="uiIcon uiIconPrivacyPrivate">&nbsp;</i>
						<span class="itemLabel"><?php echo get_privacy_label(3); ?></span>
					</a>
				</li>
			</ul>
		</div>
	</div>
</div>